<?php


class newsListActions extends myFrontendAction
{
	public function executeGetNextNews(sfWebRequest $request)
	{
		$this->setLayout(false);
		
		if($request->isXmlHttpRequest()) {
			$this->news = Doctrine::getTable('NewItem')->getLatest(
				$this->getRoute()->getObject(),
				$request->getParameter('offset', 0)
			);
		}
	}
};